import Vue from 'vue'
/** 
 * 病例-月经信息服务
 */
export default {
    /**
     * 添加月经信息
     * @param {*} params 
     * @param {*} config 
     * @returns
     */
    async addMenstrualHistoryModel(params = {}, config = {}) {
        let result = await Vue.http.post('/MedicalRecordMenstrualHistory/AddMenstrualHistoryModel', params, config);
        return result;
    },
    /**
     *更新月经信息
     * @param {*} params 
     * @param {*} config 
     * @returns
     */
    async updateMenstrualHistory(params = {}, config = {}) {
        let result = await Vue.http.put('/MedicalRecordMenstrualHistory/UpdateMenstrualHistory', params, confirm);
        return result;
    },
    /**
     * 通过用户编号获取月经信息
     * @param {*} [params={}]
     * @param {*} [config={}]
     * @returns
     */
    async getMenstrualHistoryByUserID(params = {}, config = {}) {
        config.params = params;
        let result = await Vue.http.get('/MedicalRecordMenstrualHistory/GetMenstrualHistoryByUserID', config);
        return result;
    },
    /**
     * 通过编号获取月经信息
     * @param {*} [params={}]
     * @param {*} [config={}]
     * @returns
     */
    async getMenstrualHistoryByID(params = {}, config = {}) {
        config.params = params;
        let result = await Vue.http.get('/MedicalRecordMenstrualHistory/GetMenstrualHistoryByID', config);
        return result;
    }
}